package com.chinatechstar.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;

import com.chinatechstar.gateway.filter.GatewayFilter;

/**
 * ZJCode的入口网关启动类
 * 
 * @版权所有 上海至界信息科技有限公司 
 */
@SpringBootApplication(scanBasePackages = "com.chinatechstar")
@EnableDiscoveryClient
public class ZJCodeGatewayApplication {

	public static void main(String[] args) {
		SpringApplication.run(ZJCodeGatewayApplication.class);
	}

	@Bean
	public GatewayFilter gatewayFilter() {
		return new GatewayFilter();
	}

}
